import { DemoType, ApiStatus } from '@/types.d';

export const createDemoType = (props:Omit<DemoType, 'apiStatus'> & Partial<Pick<DemoType, 'apiStatus'>>): DemoType => {
    return {
        ...props,
        apiStatus: props.apiStatus ?? ApiStatus.Normal
    };
};